package pojo;

import server.HttpServlet;

import java.util.HashMap;
import java.util.Map;

public class PortAndServlet {
    private Integer port;//用户设置的端口号
    private Map<String, HttpServlet> servletMap = new HashMap<>();//url 对应 servlet实体

    public PortAndServlet(Integer port, Map<String, HttpServlet> servletMap) {
        this.port = port;
        this.servletMap = servletMap;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Map<String, HttpServlet> getServletMap() {
        return servletMap;
    }

    public void setServletMap(Map<String, HttpServlet> servletMap) {
        this.servletMap = servletMap;
    }
}
